package com.xja.dao;

import com.xja.entity.Indent;
import com.xja.entity.Register;
import com.xja.entity.User;
import com.xja.entity.WorkPeople;

import java.util.List;

public interface LwdDao {
    //查询所有用户
    public List<User> findAllUser();
    //查询用户是否存在
    public User findUserById(Integer id);
    //修改用户信息
    public Integer updateUser(User user);
    //删除用户
    public Integer deleUser(Integer id);
    //创建登记信息
    public Register createRegisterByUserId(Integer id);
    //添加登记表
    public Integer addRegist(Register register);
    //删除预定表
    public Integer deleIndent(Register register);
    //事务操作（针对登记和预定）
    public boolean updateRegisterAndIndent(Register register);
    //查询预定表
    public Indent findIndentById(Integer id);
    //查询所有员工
    public List<WorkPeople> findAllWork();
    //根据id查询员工信息
    public WorkPeople findWorkById(Integer id);
    //修改用户信息
    public Integer updateWork(WorkPeople workPeople);
    //添加员工
    public Integer addWork(WorkPeople workPeople);
    //删除用户
    public Integer deleWork(Integer id);
}
